package com.tjhk.java.tech.clone;
public class PersonDemo {
    public static void main(String[] args) {
        String[] course = {"语文","数学"};
        String s = "张三";
        Person p = new Person(s,20,course);

        Person pc = (Person) p.clone();
        s = "李四";
        pc.setName(s);
        System.out.println(p.name+":"+p.getCourse());
        System.out.println(pc.name+":"+pc.getCourse());

        System.out.println(p.getName() == pc.getName());
    }
}
